ibs
Class Interprocessmiddle

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ibs.Interprocessmiddle
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Interprocessmiddle
extends javax.servlet.http.HttpServlet

Servlet implementation class for Servlet:transfer funds from to any other another and updates account tables.

See Also:
Serialized Form

Constructor Summary
Interprocessmiddle()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doGet : It internally calls the dopost method
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doPost : It will transfer the amount from from-account holder to to-account holder and update the balances
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interprocessmiddle

public Interprocessmiddle()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
doGet : It internally calls the dopost method

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - : Request carries the another person's account number and his name
res - : Response carries the status of the transaction
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
doPost : It will transfer the amount from from-account holder to to-account holder and update the balances

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - : Request carries the transaction password,another person's account number and his name
res - : Response carries the status of the transaction
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)